package cn.lqz.bucttrain.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 前端路线展示VO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RouteVO {
    /**
     * 路线id
     */
    private Long routeId;
    /**
     * 车次
     */
    private String trainNumber;
    /**
     * 列车id
     */
    private Long trainId;
    /**
     * 列车类型
     */
    private Integer trainType;
    /**
     * 始发站城市
     */
    private String startStationCity;
    /**
     * 始发站名称
     */
    private String startStationName;

    /**
     * 中转站城市
     */
    private String transferStationCity;
    /**
     * 中转站名称
     */
    private String transferStationName;

    /**
     * 终点站城市
     */
    private String endStationCity;
    /**
     * 终点站名称
     */
    private String endStationName;

    /**
     * 始发站出发时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime startStationStartTime;
    /**
     * 中转站到达时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime transferStationEndTime;
    /**
     * 中转站出发时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime transferStationStartTime;
    /**
     * 终点站到达时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime endStationEndTime;
    /**
     * 商务座放票行数起始
     */
    private Integer businessRowStart;
    /**
     * 商务座放票行数结束
     */
    private Integer businessRowEnd;
    /**
     * 普通座放票行数起始
     */
    private Integer commonRowStart;
    /**
     * 普通座放票行数结束
     */
    private Integer commonRowEnd;
    /**
     * 商务座价格
     */
    private BigDecimal businessPrice;
    /**
     * 普通座价格
     */
    private BigDecimal commonPrice;
    /**
     * 路线状态：0禁用，1启用，2维修
     */
    private Integer status;


}
